﻿using System;
using System.Collections.Generic;
using System.Text;
using SharpRedisDesktopManager.Core.Models;

namespace SharpRedisDesktopManager.Core.Services
{
    public class RedisManagement
    {
        private List<RedisConnectionInfo> ConnectionInfos { get; set; }

        public RedisManagement()
        {
            ConnectionInfos = new List<RedisConnectionInfo>();
        }

        public void AddConnection()
        {
            ConnectionInfos.Add(new RedisConnectionInfo() { 
                Name= $"新链接新链接新链接新链接{ConnectionInfos.Count + 1}"
            });
        }

        public List<RedisConnectionInfo> All()
        {
            return ConnectionInfos;
        }
    }
}
